<?php

/**
 * Initializing file for SMW RDFIO extension.
 *
 * @file
 * @ingroup RDFIO
 */
if( !defined( 'MEDIAWIKI' ) ) {
	die( 'Not an entry point.' );
}

define('RDFIO_VERSION', '0.0.1 Alpha');
	
global $wgExtensionCredits;

$wgExtensionCredits['other'][]= array(
	'path' => __FILE__,
	'name' => 'SMW RDFIO',
	'version' => RDFIO_VERSION,
	'author' => array( '[http://saml.rilspace.org Samuel Lampa]' ),
	'url' => 'http://www.mediawiki.org/wiki/Extension:RDFIO',
	'description' => 'Extended RDF Import/Export facilities for Semantic MediaWiki'
);

/**************************
 *  ARC2 RDF API for PHP  *
 **************************/

$smwgARC2Path = $smwgIP . '/libs/arc/';
require_once($smwgARC2Path . '/ARC2.php');

/**************************
 *  ARC2 RDF Store config *
 **************************/

$smwgARC2StoreConfig = array(
              /* Customize these details if you   *
               * want to use an external database */
                'db_host' => $wgDBserver,
                'db_name' => $wgDBname,
                'db_user' => $wgDBuser,
                'db_pwd' =>  $wgDBpassword,
                'store_name' => 'arc2store',
);
$smwgDefaultStore = 'SMWARC2Store'; // Determines database table prefix

require_once("$IP/extensions/RDFIO/SMW_ARC2Store.php");
require_once("$IP/extensions/RDFIO/SpecialARC2Admin.php");

/**************************
 *  ARC2 RDF Store config *
 **************************/
include_once("$IP/extensions/PageObjectModel/POM.php");
include_once("$IP/extensions/SMWWriter/SMWWriter_Settings.php");

require_once("RDFStore.php");
require_once("EquivalentURIHandler.php");
require_once("RDFImporter.php");
require_once("SpecialRDFImport.php");
require_once("SpecialSPARQLEndpoint.php");

